import "./index.scss"

export default function GoodsItem({goods,onClick}){

    return <div className="goodsItem" onClick={onClick}>
        <div className="goodsImg">
            <img alt={goods ? goods.goods_name : '' } src={goods.goods_img} ></img>
        </div>
        <div className="goodsInfo">
            <div className="goodsName">{goods.goods_name}</div>
            <div className="footer">
                <div className="buyCount">{goods.buy_count}人付款</div>
                <div className="prices">￥<span>{goods.prices}</span></div>
            </div>
        </div>
    </div>
} 